package pin.db.schema.base;
import pin.db.schema.*;
import java.util.Hashtable;
import java.sql.Timestamp;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.Collection;
import java.sql.SQLException;
import java.util.Vector;
public class ForwardEventBase{
	boolean[] modified=new boolean[7];
	public void resetModified(){
		for(boolean b:modified){
			b=false;
		}
	}
	private final Hashtable<String,Object> data=new Hashtable<String,Object>();
	public final void set(String columnNameDb, Object value){
		data.put(columnNameDb,value);
	}
	public final Object get(String columnNameDb){
		return data.get(columnNameDb);
	}
	public ForwardEventBase(){}
	public ForwardEventBase(java.lang.Long eventId,java.lang.Long fromAppId,java.lang.Long fromSpotId,java.lang.Long postId,java.lang.Long toAppId,java.lang.Long toSpotId,java.util.Date eventTime){
		setEventId(eventId);
		setFromAppId(fromAppId);
		setFromSpotId(fromSpotId);
		setPostId(postId);
		setToAppId(toAppId);
		setToSpotId(toSpotId);
		setEventTime(eventTime);
	}
	public void setEventId(java.lang.Long eventId){
		if(eventId!=null) {
			set("eventId",eventId);
			this.modified[0] =true;
		}
	}
	public java.lang.Long getEventId(){
		return (java.lang.Long)get("eventId");
	}
	public void setFromAppId(java.lang.Long fromAppId){
		if(fromAppId!=null) {
			set("fromAppId",fromAppId);
			this.modified[1] =true;
		}
	}
	public java.lang.Long getFromAppId(){
		return (java.lang.Long)get("fromAppId");
	}
	public void setFromSpotId(java.lang.Long fromSpotId){
		if(fromSpotId!=null) {
			set("fromSpotId",fromSpotId);
			this.modified[2] =true;
		}
	}
	public java.lang.Long getFromSpotId(){
		return (java.lang.Long)get("fromSpotId");
	}
	public void setPostId(java.lang.Long postId){
		if(postId!=null) {
			set("postId",postId);
			this.modified[3] =true;
		}
	}
	public java.lang.Long getPostId(){
		return (java.lang.Long)get("postId");
	}
	public void setToAppId(java.lang.Long toAppId){
		if(toAppId!=null) {
			set("toAppId",toAppId);
			this.modified[4] =true;
		}
	}
	public java.lang.Long getToAppId(){
		return (java.lang.Long)get("toAppId");
	}
	public void setToSpotId(java.lang.Long toSpotId){
		if(toSpotId!=null) {
			set("toSpotId",toSpotId);
			this.modified[5] =true;
		}
	}
	public java.lang.Long getToSpotId(){
		return (java.lang.Long)get("toSpotId");
	}
	public void setEventTime(java.util.Date eventTime){
		if(eventTime!=null) {
			set("eventTime",eventTime);
			this.modified[6] =true;
		}
	}
	public java.util.Date getEventTime(){
		return (java.util.Date)get("eventTime");
	}
}
